/**
 * 
 */
package burhan.bean;

import java.util.Date;

/**
 * @author Burhan
 *
 */
public class TransactionBean {
	/** instance variables **/
	final int id;
	final int uid;
	final String type;
	Date date;
	float amount;
	String description;
	
	/**
	 * @param id
	 * @param type
	 * @param date
	 * @param amount
	 * @param description
	 */
	public TransactionBean(int id, int uid, String type, Date date, float amount,
			String description) {
		this.id = id;
		this.uid = uid;
		this.type = type;
		this.date = date;
		this.amount = amount;
		this.description = description;
	}
	/**
	 * @return the amount
	 */
	public float getAmount() {
		return amount;
	}
	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @return the id
	 */
	public int getUid() {
		return uid;
	}
	/**
	 * @param amount the amount to set
	 */
	public void setAmount(float amount) {
		this.amount = amount;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Transaction [id=");
		builder.append(id);
		builder.append(", uid=");
		builder.append(uid);
		builder.append(", type=");
		builder.append(type);
		builder.append(", date=");
		builder.append(date);
		builder.append(", amount=");
		builder.append(amount);
		builder.append(", description=");
		builder.append(description);
		builder.append("]");
		return builder.toString();
	}
}
